﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Servo_Tool.utils
{
    public class S7HexUtils
    {
        public static string GetStringFromBytes(byte[] data)
        {
            // 将字节数据转换为字符串
            return Encoding.ASCII.GetString(data.Skip(2).ToArray()).TrimEnd('\0', ' ');
        }
    }
}
